<!DOCTYPE html>
<html class="bg-black">

<head>
    <meta charset="UTF-8">
    <title>Bonanzooka using Angular Templating</title>
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <!-- bootstrap 3.2.0 Latest compiled and minified CSS -->
    <link href="../css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <!-- font Awesome -->
    <link href="../css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <!-- Ionicons -->
    <link href="../css/ionicons.min.css" rel="stylesheet" type="text/css" />
    <link href="../css/icons-payment.css" rel="stylesheet" type="text/css" />
    <link href="../css/flag-icon.css" rel="stylesheet" type="text/css" />
    <link href="../css/flag-icon.css" rel="stylesheet" type="text/css" />
    <link href="../css/typicons.css" rel="stylesheet" type="text/css" />
    <!-- Theme style -->
    <link href="../css/bonanzooka.css" rel="stylesheet" type="text/css" />
    <link href="../css/style.css" rel="stylesheet" type="text/css" />

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
          <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->
</head>

<body id="bg-phone" class="bg-black">

<form action="../index.html">
    <div class="iphone">
        <div class="notifs">
            <div class="choice">
                <a href="#">today</a><a href="#" class="active">all</a><a href="#">missed</a>

                <button id="bg-close" class="btn btn-success pull-right">Close</button>
            </div>
            <div class="notif first" id="twitter">
                <div class="title">
                    <i class="icon-twitter"></i>
                    <h2>Twitter</h2>
                    <span id="twitter-close">x</span>
                </div>
                <div class="desc">
                    <h3>Twitter</h3>
                    <span>yesterday, 12:23</span>
                    <p>J8atiste say: I love the new IOS7 interface but the news icons are very ugly ...</p>
                </div>
                <div class="desc">
                    <h3>Twitter</h3>
                    <span>13 days ago</span>
                    <p>J8atiste say: I look forward to WWDC....</p>
                </div>
            </div>
            <div class="notif" id="fb">
                <div class="title">
                    <i class="icon-facebook"></i>
                    <h2>Facebook</h2>
                    <span id="fb-close">x</span>
                </div>
                <div class="desc">
                    <h3>Facebook</h3>
                    <span>yesterday, 01:30</span>
                    <p>You have received a new invitation.</p>
                </div>
            </div>
        </div>

        <div class="chevron haut">
            <div class="fleche up"></div>
        </div>
        <div class="screen">
            <div class="time" id="time">
                <span></span>
            </div>
            <div class="date">Monday, June 10</div>


            <br>
            <br>
            <br>
            <div class="lockscreen-image">
                <img src="http://api.randomuser.me/portraits/thumb/men/41.jpg" alt="user image" />
            </div>
            <br>


            <input class="form-control" type="Password" placeholder="Password">


            <div class="unlock">
                <button type="submit" class="btn btn-success btn-lg">UNLOCK</button>
            </div>
            <div class="chevron bas">
                <div class="fleche"></div>
            </div>
        </div>
    </div>
</form>

    <!-- jQuery 2.0.2 -->
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
    <!-- Bootstrap -->
    <script src="../js/bootstrap.min.js" type="text/javascript"></script>
    <script class="cssdeck"></script>
    <script>
    $(function() {
        $('.haut, .bas').click(function() {
            $('.notifs').toggleClass('active');
            $('.screen').toggleClass('active');
        });
    });
    $(function() {
        $('#twitter-close').click(function() {
            $('#twitter').toggleClass('active');
        });
    });
    $(function() {
        $('#fb-close').click(function() {
            $('#fb').toggleClass('active');
        });
    });
    $(function() {
        $('#bg-close').click(function() {
            $('.notifs').toggleClass('active');
            $('.screen').toggleClass('active');
        });
    });
    </script>
    <script type="text/javascript">
    $(function() {
        startTime();
        $(".center").center();
        $(window).resize(function() {
            $(".center").center();
        });
    });

    /*  */

    function startTime() {
        var today = new Date();
        var h = today.getHours();
        var m = today.getMinutes();
        var s = today.getSeconds();

        // add a zero in front of numbers<10
        m = checkTime(m);
        s = checkTime(s);

        //Check for PM and AM
        var day_or_night = (h > 11) ? "PM" : "AM";

        //Convert to 12 hours system
        if (h > 12)
            h -= 12;

        //Add time to the headline and update every 500 milliseconds
        $('#time').html(h + ":" + m + ":" + s + " " + day_or_night);
        setTimeout(function() {
            startTime()
        }, 500);
    }

    function checkTime(i) {
        if (i < 10) {
            i = "0" + i;
        }
        return i;
    }

    /* CENTER ELEMENTS IN THE SCREEN */
    </script>

</body>

</html>
